﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RungSoft.RungEBookMaker.Providers.DocFormater.Umd
{
    internal static class StaticFunctions
    {
        internal static class BookType
        {
            public static byte[] BOOK_TYPE_TEXT         = new byte[] { 1, 1 };
            public static byte[] BOOK_TYPE_CARTTON      = new byte[] { 2, 2 };
            public static byte[] BOOK_TYPE_COMIC_BOOK   = new byte[] { 3, 2 };
        }

        internal static class BookTypeText
        {
            public static string BOOK_TYPE_TEXT = "纯文字格式";
            public static string BOOK_TYPE_CARTTON = "漫画&写真集";
            public static string BOOK_TYPE_COMIC_BOOK = "连环画（文字+图画）";
        }

        internal const uint CMD_DATA_SECTION_HEADER = 0xde9a9b89;

        /// <summary>
        /// 文件头 0x01
        /// </summary>
        internal const short CMD_SEC_FILE_HEAD = 0x01;

        /// <summary>
        /// 书名 0x02
        /// </summary>
        internal const short CMD_SEC_TITLE = 0x02;

        /// <summary>
        /// 作者 0x03
        /// </summary>
        internal const short CMD_SEC_AUTHOR = 0x03;

        /// <summary>
        /// 年 0x04
        /// </summary>
        internal const short CMD_SEC_YEAR = 0x04;

        /// <summary>
        /// 月 0x05
        /// </summary>
        internal const short CMD_SEC_MONTH = 0x05;

        /// <summary>
        /// 日 0x06
        /// </summary>
        internal const short CMD_SEC_DAY = 0x06;

        /// <summary>
        /// Gender 0x07
        /// </summary>
        internal const short CMD_SEC_GENDER = 0x07;

        /// <summary>
        /// Publisher 0x08
        /// </summary>
        internal const short CMD_SEC_PUBLISHER = 0x08;

        /// <summary>
        /// Vendor 0x09
        /// </summary>
        internal const short CMD_SEC_VENDOR = 0x09;

        /// <summary>
        /// 内容长度 0x0B
        /// </summary>
        internal const short CMD_SEC_CONTENT_LENGTH = 0x0B;

        /// <summary>
        /// 页面数0x81
        /// </summary>
        internal const short CMD_SEC_PAGE_COUNT = 0x81;

        /// <summary>
        /// 封面图0x82
        /// </summary>
        internal const short CMD_SEC_COVER_IMAGE = 0x82;

        /// <summary>
        /// 章节偏移量0x83
        /// </summary>
        internal const short CMD_SEC_CHAPTER_OFFSET = 0x83;

        /// <summary>
        /// 章节标题0x84
        /// </summary>
        internal const short CMD_SEC_CHAPTER_TITLE = 0x84;
    }
}
